@extends('admin.public')

@section('content')
    <div class="col-md-12">
        <form data-validate="parsley" method="post" enctype="multipart/form-data">
            {!! csrf_field() !!}
            <section class="panel panel-default">
                <header class="panel-heading">
                    {{ $frame['title'] }}
                </header>
                <div class="panel-body">
                    <p class="text-muted">请放心,就算添加了水印,当你不需要水印的时候,也是可以去除的!</p>
                    <div class="form-group pull-in clearfix">
                        <div class="col-sm-6">
                            <label>水印文件</label>
                            <div class="clearfix"></div>
                            <input type="file" name="water" class="filestyle" data-icon="false"
                                   data-classButton="btn btn-default"
                                   name="web_qrcode"
                                   data-classInput="form-control inline v-middle input-s">
                        </div>
                        <div class="col-sm-6">
                            <label>水印添加位置</label>
                            <div class="clearfix"></div>
                            <select style="width:100%" class="chosen-select" name="position">
                                <option value="top-left">左上</option>
                                <option value="top">上</option>
                                <option value="top-right">右上</option>
                                <option value="left">左中</option>
                                <option value="center">正中</option>
                                <option value="right">右中</option>
                                <option value="bottom-left">左下</option>
                                <option value="bottom">下</option>
                                <option value="bottom-right">右下</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label>添加/删除水印模块选择</label>
                        <div class="checkbox i-checks">
                            @foreach($chunks as $path=>$name)
                                <label class="col-md-3">
                                    <input type="checkbox" name="chunk[{{ $path }}]" checked
                                           class="parsley-validated"><i></i> {{ $name }}
                                </label>
                            @endforeach
                        </div>
                    </div>
                </div>
                <footer class="panel-footer text-right bg-light lter">
                    <button type="submit" class="btn btn-success btn-s-xs">保存</button>
                    <button type="submit" class="btn btn-danger btn-s-xs" name="clearwater" value="1">清除水印</button>
                </footer>
            </section>
        </form>
    </div>
@endsection

@section('css')
    <link rel="stylesheet" href="/public/theme/js/chosen/chosen.css" type="text/css"/>
@endsection

@section('js')
    <!-- Chosen -->
    <script src="/public/theme/js/chosen/chosen.jquery.min.js"></script>
    <!-- file input -->
    <script src="/public/theme/js/file-input/bootstrap-filestyle.min.js"></script>
@endsection